package com.lizhi.yun.core.controller;/**
 * @program: sfrobot-html
 * @name SerialController
 * @description: 串口管理
 * @author: lizhi
 * @create: 2020-04-23 17:07
 */

import com.lizhi.common.yun.entity.ListResponseResult;
import com.lizhi.yun.core.handler.ServiceSerialManageHandler;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.Map;

/**
 *@program: sfrobot-html
 *@name SerialController
 *@description: 串口管理
 *@author: lizhi
 *@create: 2020-04-23 17:07
 */
@RefreshScope
@RestController
@RequestMapping(path = "/api/stand/yun/serialManage")
@Api("串口配置信息")
public class SerialManageController {

    @Resource
    private ServiceSerialManageHandler serialManageHandler;

    @ApiOperation("通过map查询串口配置信息")
    @PostMapping(path = "/doMain")
    public ListResponseResult doMain(@RequestBody String json) {
        return serialManageHandler.doMain(json);
    }

}
